<h1>Listing ratings</h1>

<table>
  <tr>
    <th>Amount</th>
    <th>Subject</th>
    <th>Subject type</th>
    <th>Rater</th>
    <th>Created at</th>
  </tr>
  
<% for rating in @ratings %>
  <tr>
    <td><%=h rating.amount %></td>
    <td><%=h rating.subject_id %></td>
    <td><%=h rating.subject_type %></td>
    <td><%=h rating.rater_id %></td>
    <td><%=h rating.created_at %></td>
    <td><%= link_to 'Show', rating_path(rating) %></td>
    <td><%= link_to 'Edit', edit_rating_path(rating) %></td>
    <td><%= link_to 'Destroy', rating_path(rating), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New rating', new_rating_path %>